package com.gdcp.mapper;

import com.gdcp.beans.News;
import com.gdcp.beans.Shop;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

@Repository
public interface NewsMapper {

    News getInformation(Integer id);

    int insert(News news);

    int updateByPrimaryKey(News news);

    List<News> findPageBreakByCondition(Map<String, Object> model);

    int removeByPrimaryKey(Integer id);

    List<Shop> searchInformation(Map<String, Object> model);

    List<News> queryByLimit();

    void updateLooks(@PathVariable("id") Integer news_id);
}
